package exe

import (
	"github.com/fatedier/frp/cmd"
	"github.com/fatedier/golib/crypto"
)

//export exeFrpc
func StartFrpc(path string) {
	cmd.ExeFrpc(path)
}

//export stopFrpc
func StopFrpc() {
	cmd.StopFrpc()
}

//export exeFrps
func StartFrps(s string) {
	crypto.DefaultSalt = "frp"
	cmd.ExeFrps(s)
}

//export stopFrps
func StopFrps() {
	cmd.StopFrps()
}
